package ws.very.util.lang
import java.io.{ Closeable => jc }
import java.util.concurrent.atomic.AtomicBoolean
import ShortTypes._
trait Closeable extends jc {
  def isClose: B
}
trait CloseWithAutoStateAble extends Closeable {
  var isClose = false
  override abstract def close = this.synchronized {
    if (!isClose)
      super.close
    isClose = true
  }

}
